Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery C

Total Complexity 102
Dependencies 6
Dependents 1
Total lines 959
Lines of code 521
Logical lines of code 203
Comment lines 321
Methods 31
Properties 6

Methods 31

Method Rating Maintainability Complexity Lines of code
get_global_query()
S
53 7 24
update_rest_query()
S
57 7 14
merge_queries()
S
52 6 28
get_stock_status_query()
S
53 6 25
get_filter_by_price_query()
S
52 5 28
get_filter_by_attributes_query()
S
49 4 35
check_if_post_template_has_support_for_grid_view()
S
55 5 20
array_merge_recursive_replace_non_array_properties()
S
58 5 17
get_filter_by_taxonomies_query()
S
58 5 14
get_filter_by_rating_query()
S
51 4 28
get_queries_by_custom_attributes()
S
59 5 13
get_product_visibility_query()
S
57 4 17
build_query()
S
50 3 29
get_filter_by_stock_status_query()
S
54 3 24
update_query()
S
57 3 17
get_valid_query_vars()
S
51 2 30
get_product_attributes_query()
S
54 2 23
get_filter_by_attributes_query_vars()
S
58 2 17
get_filter_by_keyword_query()
S
66 3 9
filter_query_to_only_include_ids()
S
68 3 7
merge_tax_queries()
S
65 3 9
enqueue_styles()
S
70 3 6
get_custom_orderby_query()
S
61 2 13
initialize()
S
58 1 18
get_query_vars_from_filter_blocks()
S
59 1 15
extend_rest_query_allowed_params()
S
71 2 5
is_woocommerce_variation()
S
73 2 4
set_query_vars()
S
65 1 10
get_queries_by_applied_filters()
S
67 1 8
get_on_sale_products_query()
S
74 1 5
enqueue_data()
S
65 1 9